xenoprof: Small fixes.
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 28 Oct 2008 10:35:15 +0000 (10:35 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 28 Oct 2008 10:35:15 +0000 (10:35 +0000)
Signed-off-by: Ronghui Duan <ronghui.duan@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/oprofile/op_model_ppro.c
xen/include/asm-x86/xenoprof.h
xen/include/xen/xenoprof.h

index 3aa3fa7f2da4fb23ceed3f1aaf38452bcd4c5173..fb12efe46a284bf6103f863bac82126b391e2f0e 100644 (file)
@@ -26,7 +26,6 @@
 #include <xen/domain_page.h>
 #include <xen/hypercall.h>
 #include <xen/perfc.h>
-#include <xen/xenoprof.h>
 #include <asm/current.h>
 #include <asm/io.h>
 #include <asm/regs.h>
@@ -50,6 +49,7 @@
 #include <asm/hvm/vpt.h>
 #include <public/hvm/save.h>
 #include <asm/hvm/trace.h>
+#include <asm/xenoprof.h>
 
 enum handler_return { HNDL_done, HNDL_unhandled, HNDL_exception_raised };
 
index 847b063d123a5830c785934220f94d2dd010da39..90b5d2887a1dc434d770251b40755647b7d901c0 100644 (file)
@@ -121,7 +121,7 @@ static int ppro_check_ctrs(unsigned int const cpu,
                        {
                                if ( IS_ACTIVE(msrs_content[i].control) )
                                {
-                                       msrs_content[i].counter = (low | (unsigned long)high << 32);
+                                       msrs_content[i].counter = (low | (u64)high << 32);
                                        if ( IS_ENABLE(msrs_content[i].control) )
                                                ovf = 2;
                                }
index 3e318eba69098862fb38c309d07bc58fb6e1f4aa..77086658f5bf55f614123e5a45778c3751b19d23 100644 (file)
@@ -64,6 +64,9 @@ void xenoprof_backtrace(
                  "xenoprof/x86 with autotranslated mode enabled"    \
                  "isn't supported yet\n");                          \
     } while (0)
+int passive_domain_do_rdmsr(struct cpu_user_regs *regs);
+int passive_domain_do_wrmsr(struct cpu_user_regs *regs);
+void passive_domain_destroy(struct vcpu *v);
 
 #endif /* __ASM_X86_XENOPROF_H__ */
 
index 3c0104e382d826bf5c0fe3c2193e6bf97f98e532..5616d0867f08dbf83b511f0565ee25fdfec71a75 100644 (file)
@@ -75,7 +75,4 @@ int xenoprof_add_trace(struct domain *d, struct vcpu *v,
 int acquire_pmu_ownship(int pmu_ownership);
 void release_pmu_ownship(int pmu_ownership);
 
-int passive_domain_do_rdmsr(struct cpu_user_regs *regs);
-int passive_domain_do_wrmsr(struct cpu_user_regs *regs);
-void passive_domain_destroy(struct vcpu *v);
 #endif  /* __XEN__XENOPROF_H__ */